<?php
/**
 * Default layout for form view
 *
 * @version		$Id: default.php 163 2009-07-04 09:15:32Z dr_drsh $
 * @package		Joomla
 * @subpackage	JForms
 * @copyright	Copyright (C) 2008 Mostafa Muhammad. All rights reserved.
 * @license		GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
?>
<div class="jform">
  <table class="jform"><tr><td>
        <form class="validate jform wide" <?php $l = $this->jform->getRemoteCheckLink(); if(!empty($l)) echo 'remote="',$l,'"'; ?> name="jform" action="index.php" method="post" enctype="multipart/form-data">
          <?php

          echo '<h2>',$this->jform->getTitle(),'</h2>';
          echo $this->jform;
//foreach ($this->row->fields as $f ){
//	echo $this->pManager->invokeMethod('render', JFORM_PLUGIN_ELEMENT, array($f->type), array( $f ) );
//}

          ?>
          <input type="hidden" name="option" value="com_electroforms" />
          <input type="hidden" name="task" value="save" />
          <input type="hidden" name="uid" value="<?php echo $this->uid ?>" />
          <input type="hidden" name="id" value="<?php echo $this->row->id ?>" />
          <input type="hidden" name="Itemid" value="<?php echo $this->Itemid ?>" />

          <?php echo JHTML::_( 'form.token' ); ?>
        </form>
      </td></tr></table>
</div>